//
//  ViewController.h
//  TigerClef
//
//  Created by Christopher Laguna on 6/28/13.
//  Copyright (c) 2013 Christopher Laguna. All rights reserved.
//
//  This is the file where we declare instance variables and list the methods, in an abstract way.
//  We declare methods here too.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import "StaffView.h"

enum {
    kText,
    kDisplay,
    kAnswer,
    kStaffPos,
    kNotePos,
    
    kTutorial = 1,
    kThreeButtons,
    kSevenButtons,
    kWin,
    kLose,
    
    kNumAllowedTries = 10,
    kNumCorrectAnswersNeeded = 8
} displays;

extern int levelsBeat;

@interface ViewController : UIViewController {
    StaffView *staffView;
    UIView *topView;
    int page;
    UITextView *tutorialText;
    NSMutableArray *tutorialTextArray;
    UIButton *nextButton;
    NSMutableArray *buttons;
    UIButton *button1;
    UIButton *button2;
    UIButton *button3;
    UIButton *button4;
    UIButton *button5;
    UIButton *button6;
    UIButton *button7;
    NSMutableArray *treblePitches;
    NSMutableArray *bassPitches;
    NSMutableArray *altoPitches;
    NSMutableArray *tenorPitches;
    NSMutableArray *fancyPitches1;
    NSMutableArray *fancyPitches2;
    NSMutableArray *fancyPitches3;
    NSMutableArray *fancyPitches4;
    NSMutableArray *fancyPitches5;
    int currentAnswer;
    int numCorrectAnswers;
    int numTotalAnswers;
    BOOL firstAnswer;
    int level;
    int cleffPositionfromGenerateAnswer;
}

- (id) initWithLevel: (int) level;
-(void)buildStaff:(float) yVal;
-(void)nextClicked : (id) sender;
- (void) backToLevels: (id) sender;
- (void)updateButtons: (int) stateNum;
- (NSString*)displayText: (int) pageNum;
- (NSString *) generateAnswer;


@property StaffView *staffView;
@property UIView *topView;
@property int page;
@property UITextView *tutorialText;
@property NSMutableArray *tutorialTextArray;
@property UIButton *nextButton;
@property NSMutableArray *buttons;
@property UIButton *button1;
@property UIButton *button2;
@property UIButton *button3;
@property UIButton *button4;
@property UIButton *button5;
@property UIButton *button6;
@property UIButton *button7;
@property NSMutableArray *treblePitches;
@property NSMutableArray *bassPitches;
@property int currentAnswer;
@property int numCorrectAnswers;
@property int numTotalAnswers;
@property BOOL firstAnswer;
@property int level;
@property NSMutableArray *altoPitches;
@property NSMutableArray *tenorPitches;
@property NSMutableArray *fancyPitches1;
@property NSMutableArray *fancyPitches2;
@property NSMutableArray *fancyPitches3;
@property NSMutableArray *fancyPitches4;
@property NSMutableArray *fancyPitches5;
@property int cleffPositionfromGenerateAnswer;

@end
